#include "serialport.h"
#include <QApplication>

#include "wiringPi.h"
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    if(wiringPiSetup() == -1)
    {
        qDebug() << "setup wiringPi failed !";
    }else
    {
        qDebug() << "setup wiringPi successed !";
    }

    SerialPort w;
    w.show();

    return a.exec();
}
